package com.allwees.bs.module.fms.req;

import com.allwees.bs.core.modelbase.validate.ValidateItem;
import com.allwees.bs.module.core.req.BaseAuditReq;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.ArrayUtils;

import java.util.Set;

@Data
@EqualsAndHashCode(callSuper = true)
public class AuditWithdrawReq extends BaseAuditReq {
	private Set<String> accountLogUuids;

	@Override
	public ValidateItem[] getValidateItems() {
		return ArrayUtils.addAll(
				super.getValidateItems(),
				new ValidateItem(CollectionUtils.isEmpty(accountLogUuids), "accountLogUuids 不能为空")
			);
	}
}
